package loengud.kymnes;

import java.awt.Point;

public class Stack {

	Point data;
	Stack next;
	
	Stack head;
	
	void push(Point p) {
		Stack n = new Stack();
		n.data = p;
		n.next = head;
	}
	
	Stack pop() {
		Stack result = head;
		head = head.next;
		return result;
	}
}
